﻿using Architecture.Repository.Interface.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain.DeepProcessingDomain;
using Traceability.Domain.SupplierDomain;

namespace Architecture.Repository.Impl.Traceability
{
    public class AdditivesRepository : BaseRepository<Additive>, IAdditivesRepository
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="context"></param>
        public AdditivesRepository(EFCoreContext context) : base(context)
        {
            
        }

        public async Task<int> AdAdditives(Additive additives)
        {
            return await base.AddAsync(additives);
        }

        public async Task<List<Additive>> GetAdditiveList()
        {
            return await base.GetAllAsync();
        }

        public async Task<int> UpdateAdditive(Additive additive)
        {
            return await base.UpdateAsync(additive);
        }

        public async Task<Additive> BackInfoAdditiveg(int additiveId)
        {
            return await base.GetModelAsync(additiveId);
        }

    }
}
